package com.batchengine.util;

import static com.batchengine.Constants.EMPTY_STRING;

/**

 * User: sunil.incubator@yahoo.com
 * Date: Sep 18, 2009
 * Time: 12:19:12 AM
 */
public class Util {

    public static boolean isEmptyString(String value) {
        return (null == value || EMPTY_STRING.equalsIgnoreCase(value));
    }

    public static String createSpaceString(String[] strArry) {

        if (null == strArry || 0 == strArry.length) {
            return null;
        }

        StringBuilder sb = new StringBuilder();
        for (String s : strArry) {
            sb.append(s).append(" ");
        }
        return sb.toString().trim();
    }
}
